﻿using System;
using System.Collections.Generic;
using System.Text;
using YouMa.Model;
using System.Linq;

namespace YouMa.Reposity
{
    public class ThemeReposity:ReposityBase
    {
        public ThemeReposity(YouMaContext _db) : base(_db)
        {


        }

        public List<Theme> GetGZTheList(int userid)
        {
            var list = (from guanzhu in db.GuanZhus
                        join the in db.Themes on guanzhu.ThemeId equals the.Id
                        where guanzhu.UserId == userid
                        select the).ToList();
            return list;
        }
    }
}
